﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Small.Html.Options
{
   public  class DataListOptions<T>
   {
       private Int32? pageSize;

       public Int32? PageSize
       {
           get { return pageSize; }
           set { pageSize = value; }
       }
       private Int32? page;

       public Int32? Page
       {
           get { return page; }
           set { page = value; }
       }
       private Int32 totalCount;

       public Int32 TotalCount
       {
           get { return totalCount; }
           set { totalCount = value; }
       }
       private IQueryable<T> source;

       public IQueryable<T> Source
       {
           get { return source; }
           set { source = value; }
       }
       private Expression<Func<T, object>>[] Fields;

       public Expression<Func<T, object>>[] Fields1
       {
           get { return Fields; }
           set { Fields = value; }
       }
       bool isHiddenData;

       public bool IsHiddenData
       {
           get { return isHiddenData; }
           set { isHiddenData = value; }
       }
       bool isSequnce;

       public bool IsSequnce
       {
           get { return isSequnce; }
           set { isSequnce = value; }
       }
       bool isCanCheck;

       public bool IsCanCheck
       {
           get { return isCanCheck; }
           set { isCanCheck = value; }
       }
       bool isPager;

       public bool IsPager
       {
           get { return isPager; }
           set { isPager = value; }
       }


       private string width;

       public string Width
       {
           get { return width; }
           set { width = value; }
       }
       private string height;

       public string Height
       {
           get { return height; }
           set { height = value; }
       }
       
    }
}
